An expected-case sub-cubic solution to the all-pairs shortest path problem in R
نویسندگان
چکیده
It has been shown by Alon et al. that the so-called ‘all-pairs shortest-path’ problem can be solved in O((MV ) log(V )) for graphs with V vertices, with integer distances bounded by M . We solve the more general problem for graphs in R (assuming no negative cycles), with expected-case running time O(V 2.5 log(V )). While our result appears to violate the Ω(V ) requirement of “Funny Matrix Multiplication” (due to Kerr), we find that it has a sub-cubic expected time solution subject to reasonable conditions on the data distribution. The expected time solution arises when certain sub-problems are uncorrelated, though we can do better/worse than the expected-case under positive/negative correlation (respectively). Whether we observe positive/negative correlation depends on the statistics of the graph in question. In practice, our algorithm is significantly faster than Floyd-Warshall, even for dense graphs. 1 Problem Definition The all-pairs shortest path problem [Dijkstra, 1959] consists of solving d(v, v) = min p∈Pv,v′ f(p) (1) for all vertices v, v ∈ V , where Pv,v′ is the space of all paths connecting v to v in V , and f(p) is the path length, i.e., f(p) = ∑|p|−1 i=1 e(pi, pi+1) where e(pi, pj) is the weight of the edge connecting pi to pj, or ∞ if no such edge exists. A simple divide-and-conquer solution to (eq. 1) can be obtained by defining d(u, v, k) to be the shortest path between u and v containing at most k edges. This solution exploits the fact that d(u, v, k) = { e(u, v) if k = 1 minx (d(u, x, k/2) + d(x, v, k/2)) otherwise (2) This allows us to solve the all-pairs shortest path problem via Algorithm 1, which we requires Θ(V 3 log(V )) time (this is by no means the optimal solution, though it is this version to which our improvements apply). The authors are with the Statistical Machine Learning Program at NICTA, and the Research School of Information Sciences and Engineering, Australian National University. Queries should be addressed to [email protected].
منابع مشابه
The Lagrangian Relaxation Method for the Shortest Path Problem Considering Transportation Plans and Budgetary Constraint
In this paper, a constrained shortest path problem (CSP) in a network is investigated, in which some special plans for each link with corresponding pre-determined costs as well as reduction values in the link travel time are considered. The purpose is to find a path and selecting the best plans on its links, to improve the travel time as most as possible, while the costs of conducting plans do ...
متن کاملTwo optimal algorithms for finding bi-directional shortest path design problem in a block layout
In this paper, Shortest Path Design Problem (SPDP) in which the path is incident to all cells is considered. The bi-directional path is one of the known types of configuration of networks for Automated Guided Vehi-cles (AGV).To solve this problem, two algorithms are developed. For each algorithm an Integer Linear Pro-gramming (ILP) is determined. The objective functions of both algorithms are t...
متن کاملالگوریتم مستطیل آبشاری و ماتریس انتقال در شبکه های کوتاه ترین مسیر بادور
Shortest path problem is among the most interesting problems in the field of graph and network theory. There are many efficient matrix based algorithms for detecting of shortest path and distance between all pairs of this problem in literature. In this paper, a new exact algorithm, named Cascade Rectangle Algorithm, is presented by using main structure of previous exact algorithms and developin...
متن کاملOn the Shoshan-Zwick Algorithm for the All-Pairs Shortest Path Problem
The Shoshan-Zwick algorithm solves the all pairs shortest paths problem in undirected graphs with integer edge costs in the range {1, 2, . . . ,M}. It runs in Õ(M · n) time, where n is the number of vertices, M is the largest integer edge cost, and ω < 2.3727 is the exponent of matrix multiplication. It is the fastest known algorithm for this problem. This paper points out the erroneous behavio...
متن کاملAn Efficient Method for Selecting a Reliable Path under Uncertainty Conditions
In a network that has the potential to block some paths, choosing a reliable path, so that its survival probability is high, is an important and practical issue. The importance of this issue is very considerable in critical situations such as natural disasters, floods and earthquakes. In the case of the reliable path, survival or blocking of each arc on a network in critical situations is an un...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- CoRR
دوره abs/0912.0975 شماره
صفحات -
تاریخ انتشار 2009